package com.guqj.pattern.builder.director;

import java.util.List;

import com.guqj.pattern.builder.builder.HeroBuilder;
import com.guqj.pattern.builder.modal.Equipment;
import com.guqj.pattern.builder.modal.Level;
import com.guqj.pattern.builder.modal.Skill;

public class Director {

	private HeroBuilder builder = null;

	public Director(HeroBuilder builder) {
		this.builder = builder;
	}

	public void construct(String _playerName, Level _level, List<Skill> _skills, List<Equipment> _equipments) {
		builder.skill(_skills).userName(_playerName).level(_level).equipment(_equipments);
	}
}
